package auto.app.service;

import auto.app.controller.from.ResultDetailFrom;
import auto.app.controller.info.ResultInfo;
import auto.app.exetion.MainExection;
import auto.app.model.Result;
import auto.app.vo.TestReportVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 测试合集测试结果 服务类
 * </p>
 *
 * @author 杨森
 * @since 2022-07-20
 */
public interface ResultService extends IService<Result> {

    //单条测试用例执行录入库
    public Boolean addResult(Result result);

    //测试合集测试用例执行录入库
    public Boolean addTestCollection(Result result);

    //查询详情
    public ResultInfo detali(ResultDetailFrom resultDetailFrom) throws MainExection;

    //查询测试合集执行详情
    public List<ResultInfo> detailList(Integer collectionId) throws MainExection;

    //导出测试报告
    public  List<TestReportVo> export(Integer collectionId) throws MainExection;
}
